package com.molichuxing.gateway.bff.stock.entity.response;

import java.time.LocalDateTime;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.gateway.property.StockRecordTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author liyg
 * 库存物流dto
 * 2019-08-21
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StockRecordBaseVo extends ResponseRootDto{
    
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键id")
    private Integer id;

	@ApiModelProperty(value = "车辆id")
    private Integer carId;

	@ApiModelProperty(value = "出入库类型（4：调拨入店，6：收车入库，7：采购入店）")
    private Integer type;
	
	@ApiModelProperty(value = "出入库类型Str")
    private String typeStr;
    
	@ApiModelProperty(value = "库存状态（0:待入库  1：入库，2：出库）")
    private Integer status;
	
	@ApiModelProperty(value = "发车库名称 ")
    private String outStockName;

	@ApiModelProperty(value = "发车库类型（1：中转库，2：门店） ")
    private Integer outStockType;
    
	@ApiModelProperty(value = "发车时间 ")
    private LocalDateTime outOperationTime;

	@ApiModelProperty(value = "发车人姓名 ")
    private String outAccountAccount;
    
	@ApiModelProperty(value = "收车库名称 ")
    private String inStockName;

	@ApiModelProperty(value = "收车库类型（1：中转库，2：门店） ")
    private Integer inStockType;
	
	@ApiModelProperty(value = "收车库操作时间")
    private LocalDateTime operationTime;

	@ApiModelProperty(value = "收车库人姓名")
    private String accountAccount;
	
	@ApiModelProperty(value = "调拨说明")
    private String allotExplain;

	@ApiModelProperty(value = " 是否高亮显示 （用于车辆流转）")
    private Boolean isShow;

	public void setType(Integer type) {
    	this.type=type;
    	this.typeStr= type==null ? null : StockRecordTypeEnum.getName(type);
    }
   
}